Skip to content

Conversation

@superm1
Copy link
Contributor

@superm1 superm1 commented Jan 9, 2026

I noticed that even though amd-smi is supposed to hide the amdgpu version when no dkms package found it was showing N/A. I also believe it's useful to have the kernel version in this case. So I've got changes for both of those.

Before:

$ /opt/rocm/bin/amd-smi 
+------------------------------------------------------------------------------+
| AMD-SMI          26.2.1+ebe22b5907-dirty                                     |
| amdgpu Version:  N/A                                                         |
| VBIOS Version:   00133300                                                    |
| Platform:        Linux Baremetal                                             |
|-------------------------------------+----------------------------------------|
| BDF                        GPU-Name | Mem-Uti   Temp   UEC       Power-Usage |
| GPU  HIP-ID  OAM-ID  Partition-Mode | GFX-Uti    Fan               Mem-Usage |
|=====================================+========================================|
| 0000:c5:00.0 ...adeon 860M Graphics | N/A        N/A   0                 N/A |
|   0       0     N/A             N/A | N/A        N/A            170/27017 MB |
+-------------------------------------+----------------------------------------+
+------------------------------------------------------------------------------+
| Processes:                                                                   |
|  GPU        PID  Process Name          GTT_MEM  VRAM_MEM  MEM_USAGE     CU % |
|==============================================================================|
|  No running processes found                                                  |
+------------------------------------------------------------------------------+

After:

$ /opt/rocm/bin/amd-smi 
+------------------------------------------------------------------------------+
| AMD-SMI          26.2.1+ebe22b5907-dirty                                     |
| VBIOS Version:   00133300                                                    |
| kernel Version:  6.19.0-rc4-00067-ga01b0fd8bedf                              |
| Platform:        Linux Baremetal                                             |
|-------------------------------------+----------------------------------------|
| BDF                        GPU-Name | Mem-Uti   Temp   UEC       Power-Usage |
| GPU  HIP-ID  OAM-ID  Partition-Mode | GFX-Uti    Fan               Mem-Usage |
|=====================================+========================================|
| 0000:c5:00.0 ...adeon 860M Graphics | N/A        N/A   0                 N/A |
|   0       0     N/A             N/A | N/A        N/A            170/27017 MB |
+-------------------------------------+----------------------------------------+
+------------------------------------------------------------------------------+
| Processes:                                                                   |
|  GPU        PID  Process Name          GTT_MEM  VRAM_MEM  MEM_USAGE     CU % |
|==============================================================================|
|  No running processes found                                                  |
+------------------------------------------------------------------------------+

The intention behind it was to avoid showing the string if it's not
got information.

Signed-off-by: Mario Limonciello <[email protected]>
Copilot AI review requested due to automatic review settings January 9, 2026 14:58
@superm1 superm1 force-pushed the amd/dev/mlimonci/amdgpu-version branch from 796db73 to 04c7624 Compare January 9, 2026 14:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the amdgpu version output for amd-smi to hide the "amdgpu Version" line when no DKMS package is found (instead of showing "N/A") and adds a kernel version line to provide useful system information.

Key Changes:

  • Modified conditional logic to hide "amdgpu Version" line when value is "N/A"
  • Added kernel version display using os.uname().release

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
projects/amdsmi/amdsmi_cli/amdsmi_commands.py Added kernel version to version_info dictionary using os.uname().release
projects/amdsmi/amdsmi_cli/amdsmi_logger.py Updated conditional to properly hide amdgpu version when N/A and added kernel version output line

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This is an interesting debugging point, especially in the case of
not having a DKMS package installed.

Signed-off-by: Mario Limonciello <[email protected]>
Signed-off-by: Mario Limonciello (AMD) <[email protected]>
@superm1 superm1 force-pushed the amd/dev/mlimonci/amdgpu-version branch from 04c7624 to b02cb2d Compare January 9, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant